// created Jan 16, 2009 4:06:07 PM
// by petrovic
/*
Copyright 2009 Homosuperiorus LLC 

Licensed under the Apache License, Version 2.0 (the "License"); you may not use 
this file except in compliance with the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0 

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing
permissions and limitations under the License.

*/

package org.taglets.pub;

import java.util.Properties;

import org.taglets.util.Util;

public final class Route {

    public static String ACCOUNT_REGISTER;
    public static String ACCOUNT_CONFIRM;
    public static String ACCOUNT_REMIND;
    public static String ACCOUNT_RETRIEVE;
    public static String OUTLET_BIND;
    public static String TAG_COMMENT;
    public static String TAG_CREATE;
    public static String TAG_FOLLOW;
    public static String TAG_LIST;
    public static String TAG_MOSTCOMMENT;
    public static String TAG_MOSTRECENT;
    public static String TAG_RETRIEVE;
    public static String TAG_SEARCH;
    public static String TAG_STATUS;
    public static String TAG_UPDATE;
    public static String TWITTER_ADD;
    public static String TWITTER_VERIFY;
    public static String TWITTER_CONFIRM;

    static {
        Properties routeProperties = Util.readPropertiesAsResource("route.properties");
        ACCOUNT_REGISTER = routeProperties.getProperty("register.url");
        ACCOUNT_CONFIRM = routeProperties.getProperty("confirm.url");
        ACCOUNT_REMIND = routeProperties.getProperty("remind.url");
        ACCOUNT_RETRIEVE = routeProperties.getProperty("retrieve.url");
        OUTLET_BIND = routeProperties.getProperty("outlet.bind.url");
        TAG_COMMENT = routeProperties.getProperty("tag.comment.url");
        TAG_CREATE = routeProperties.getProperty("tag.create.url");
        TAG_FOLLOW = routeProperties.getProperty("tag.follow.url");
        TAG_LIST = routeProperties.getProperty("tag.list.url");
        TAG_MOSTCOMMENT = routeProperties.getProperty("tag.mostcomment.url");
        TAG_MOSTRECENT = routeProperties.getProperty("tag.mostrecent.url");
        TAG_RETRIEVE = routeProperties.getProperty("tag.retrieve.url");
        TAG_SEARCH = routeProperties.getProperty("tag.search.url");
        TAG_STATUS = routeProperties.getProperty("tag.status.url");
        TAG_UPDATE = routeProperties.getProperty("tag.update.url");
        TWITTER_ADD = routeProperties.getProperty("twitter.add.url");
        TWITTER_VERIFY = routeProperties.getProperty("twitter.verify.url");
        TWITTER_CONFIRM = routeProperties.getProperty("twitter.confirm.url");
    }
}
